<?php
$buildRoot = "./build";
 
$phar = new Phar($buildRoot . "/easyWeb.phar", 
  FilesystemIterator::CURRENT_AS_FILEINFO |       FilesystemIterator::KEY_AS_FILENAME, "easyWeb.phar");
$phar->buildFromDirectory(__DIR__);
// $phar->compressFiles(Phar::GZ);
$phar->setStub($phar->createDefaultStub("service.php"));

// copy($srcRoot . "/config.ini", $buildRoot . "/config.ini");